package com.example.owner.factory;

import com.example.owner.bean.impl.HighRateLimit;
import com.example.owner.bean.impl.LowRateLimit;
import io.micronaut.context.annotation.Bean;
import io.micronaut.context.annotation.Factory;
import io.micronaut.core.annotation.Order;
import jakarta.inject.Singleton;

@Factory
public class RateLimitsFactory {

    @Singleton
    @Order(5)
    LowRateLimit rateLimit2() {
        return new LowRateLimit();
    }

    @Singleton
    @Order(10)
    HighRateLimit rateLimit1() {
        return new HighRateLimit();
    }

}
